const path = require('path')
//const VueLoaderPlugin = require('./node_modules/vue-loader/lib/plugin')

module.exports = {
    entry:path.join(__dirname, './src/main.js'),
    output:{
        path:path.join(__dirname,'./dist'),
        filename:'bundle.js'
    },
    module:{
       rules:[
           {test:/\.vue$/,use:'vue-loader'},
           {test:/\.css$/, use:['style-loader','css-loader']},
           {test:/\.scss$/, use:['style-loader','css-loader','sass-loader']},
           {test:/\.(jpg|gif|png)$/, use:'url-loader'},
           {test:/\.(ttf|eot|svg|woff|woff2)$/, use:'url-loader'},
           {test:/\.js$/, use:'babel-loader', exclude:/node_modules/}
       ]
    },
    plugins:[
       // new VueLoaderPlugin()
    ]
}